
package com.addedstuff;

import net.minecraft.block.Block;
import net.minecraft.block.BlockFluid;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;

public class JumpingWand extends ItemSword {

        public JumpingWand(int par1, EnumToolMaterial par2EnumToolMaterial) {
                super(par1, par2EnumToolMaterial);
                this.setCreativeTab(CreativeTabs.tabCombat);
                // TODO Auto-generated constructor stub
        }
    public void registerIcons(IconRegister iconReg)
    {
        itemIcon = iconReg.registerIcon("Brianmodbase:Flywand");
    }
        //Will give movement speed and Jumping
    public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
    {
        par3EntityPlayer.addPotionEffect(new PotionEffect(Potion.jump.id, 10, 6));
        par3EntityPlayer.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 10, 2));
        par3EntityPlayer.addPotionEffect(new PotionEffect(Potion.resistance.id, 30, 20));
        par1ItemStack.damageItem(3, par3EntityPlayer);
        return par1ItemStack;
    }
}

